/**
 * 
 */
package com.doone.telmarket.domain;

import java.io.Serializable;

/**
 * @author 吴同庆
 * @date 2009-10-12
 * @description  增值业务订购
 * @package com.doone.telmarket.domain
 */
public class ServiceOrder implements Serializable {

	private static final long serialVersionUID = 8909600761296466777L;

	//订购方式
	private ServiceOrderMode serviceOrderMode;

	//重定向url
	private String redirectUrl;

	public ServiceOrder() {
		
	}

	public ServiceOrder(String orderMode, String redirectUrl) {
		ServiceOrderMode serviceOrderMode = ServiceOrderMode.valueOf(orderMode);
		this.serviceOrderMode = serviceOrderMode;
		this.redirectUrl = redirectUrl;
	}

	public ServiceOrderMode getServiceOrderMode() {
		return serviceOrderMode;
	}

	public void setServiceOrderMode(ServiceOrderMode serviceOrderMode) {
		this.serviceOrderMode = serviceOrderMode;
	}

	public String getRedirectUrl() {
		return redirectUrl;
	}

	public void setRedirectUrl(String redirectUrl) {
		this.redirectUrl = redirectUrl;
	}

	public String getOrderModeDesc() {
		return getServiceOrderMode().getDesc();
	}

	public String getOrderMode() {
		return getServiceOrderMode().toString();
	}

}
